package com.siss.tenancy.constant;

public class RocketMqEnum {


    //rocketMq的topic概念
    public enum Topic{
        MESSAGE(RocketConst.TOPIC_MESSAHE,"短信topic"),
        MAIL("mail","邮箱topic"),
        STATION_INFO("station_info","站内信topic")
        ;
        private String code;

        private String name;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        Topic(String code,String name){
            this.code = code;
            this.name = name;
        }
    }

    //rocketMq的组概念
    public enum Group{
        DEFAULT("default","默认分组");

        private String code;

        private String name;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        Group(String code,String name){
            this.code = code;
            this.name = name;
        }
    }

}
